const {Schema,model}=require('mongoose');
const  carSchema=new Schema({
    communityId:{
        type:Schema.Types.ObjectId,
        ref:'communityModel'
        },
    carportId:{
    type:Schema.Types.ObjectId,
    ref:'parkingSpaceModel'
    },
    price:String,//收费金额  2
    leasee:String,//出租人,租赁方
    leaseeContacts:String,//联系人
    leaseeTel:String,//联系电话   2
    carNumber:String,//车辆号码
    emissions:String,//车辆排量
    contractNumber:String,//合同编号
    tenant:String, //租户  2
    signingDate:String,//签订日期  2
    representative:String,//法定代表
    tenantContacts:String,//租户联系人
    contractType:String,//合同状态
    term:String,//租期
    off_hire:String,//停租日期   2
    start_date:String,//起租日期`  2
    area:String,//收费面积
    earnestMoney:String,//保证金
    agencyfee:String,//中介费
    isRentMoney:Boolean ,//是否收租
    totalMoney:String, //合同总价
    increase:String,//租金递增
    earnestExplain:String,//保证金说明
    remark:String,//备注
    accessory:String,//附件
    contractName:String
});
const carModel=model('carModel',carSchema,'car');
module.exports.carModel=carModel;